Optimal. Leaf size=60 \[ -\frac {\cos (e+f x)}{f (a-b)}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b}}\right )}{f (a-b)^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {3664, 325, 205} \[ -\frac {\cos (e+f x)}{f (a-b)}-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b}}\right )}{f (a-b)^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 325
Rule 3664
Rubi steps
\begin {align*} \int \frac {\sin (e+f x)}{a+b \tan ^2(e+f x)} \, dx &=\frac {\operatorname {Subst}\left (\int \frac {1}{x^2 \left (a-b+b x^2\right )} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac {\cos (e+f x)}{(a-b) f}-\frac {b \operatorname {Subst}\left (\int \frac {1}{a-b+b x^2} \, dx,x,\sec (e+f x)\right )}{(a-b) f}\\ &=-\frac {\sqrt {b} \tan ^{-1}\left (\frac {\sqrt {b} \sec (e+f x)}{\sqrt {a-b}}\right )}{(a-b)^{3/2} f}-\frac {\cos (e+f x)}{(a-b) f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.26, size = 121, normalized size = 2.02 \[ \frac {(b-a) \cos (e+f x)+\sqrt {b} \sqrt {a-b} \tan ^{-1}\left (\frac {\sqrt {a-b}-\sqrt {a} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {b}}\right )+\sqrt {b} \sqrt {a-b} \tan ^{-1}\left (\frac {\sqrt {a-b}+\sqrt {a} \tan \left (\frac {1}{2} (e+f x)\right )}{\sqrt {b}}\right )}{f (a-b)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.50, size = 158, normalized size = 2.63 \[ \left [-\frac {\sqrt {-\frac {b}{a - b}} \log \left (-\frac {{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (a - b\right )} \sqrt {-\frac {b}{a - b}} \cos \left (f x + e\right ) - b}{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}\right ) + 2 \, \cos \left (f x + e\right )}{2 \, {\left (a - b\right )} f}, -\frac {\sqrt {\frac {b}{a - b}} \arctan \left (-\frac {{\left (a - b\right )} \sqrt {\frac {b}{a - b}} \cos \left (f x + e\right )}{b}\right ) + \cos \left (f x + e\right )}{{\left (a - b\right )} f}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.70, size = 81, normalized size = 1.35 \[ -\frac {f \cos \left (f x + e\right )}{a f^{2} - b f^{2}} + \frac {b \arctan \left (\frac {a \cos \left (f x + e\right ) - b \cos \left (f x + e\right )}{\sqrt {a b - b^{2}}}\right )}{\sqrt {a b - b^{2}} {\left (a - b\right )} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.38, size = 63, normalized size = 1.05 \[ -\frac {\cos \left (f x +e \right )}{\left (a -b \right ) f}+\frac {b \arctan \left (\frac {\left (a -b \right ) \cos \left (f x +e \right )}{\sqrt {\left (a -b \right ) b}}\right )}{f \left (a -b \right ) \sqrt {\left (a -b \right ) b}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.79, size = 112, normalized size = 1.87 \[ \frac {\sqrt {b}\,\mathrm {atan}\left (\frac {-a^2\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+a^2+a\,b\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2-3\,a\,b+2\,b^2}{2\,\sqrt {b}\,{\left (a-b\right )}^{3/2}}\right )}{f\,{\left (a-b\right )}^{3/2}}-\frac {2\,\sqrt {a-b}}{f\,\left ({\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2\,{\left (a-b\right )}^{3/2}+{\left (a-b\right )}^{3/2}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sin {\left (e + f x \right )}}{a + b \tan ^{2}{\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________